package com.atguigu.springcloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
@Slf4j
@RequestMapping("/payment")
public class PaymentController {
	
	@Value("${server.port}")
	private String serverport;
	
	@GetMapping("/{id}")
	public String getServerport(@PathVariable("id")Long id){
		return "nacos调用成功,id: " + id + "; 端口: " + serverport;
	}
}
